﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EBookStore.Orders
{
    /// <summary>
    /// 
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class HistoryRecorder<T>
        where T : struct
    {
        protected DateTime _d;
        protected T _status;



        /// <summary>
        /// Status date change
        /// </summary>
        public DateTime Date
        {
            get { return _d; }
        }

        /// <summary>
        /// Readonly status
        /// </summary>
        public T Status
        {
            get { return _status; }
        }

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="date"></param>
        /// <param name="s"></param>
        public HistoryRecorder(DateTime date, T s)
        {
            _d = date;
            _status = s;
        }


    }
}
